from googlevoice import Voice
import getopt

import sys
import json

try:
    opts, args = getopt.getopt(sys.argv[1:], "m:", ["messageID="])
except getopt.GetoptError, err:
    print str(err)
    usage()
    sys.exit(2)

messageID = ""
for o, a in opts:
    if o in ("-m", "--messageID"):
        messageID = a
        
    else:
        assert False, "unhandled option"

voice = Voice()
voice.login()

voice.archive(messageID)
